package br.com.kaetec.utils;

import java.io.FileInputStream;
import java.util.Properties; 

public class ArqConfig {
	
	public String lerProperties(String variavel) {  
        
        String valor = null;  
        try {  
        	Properties props = new Properties();
//        	InputStream file = getClass().getClassLoader().getResourceAsStream("properties/config.properties");
        	FileInputStream file = new FileInputStream("./properties/config.properties");
        	props.load(file);
        	valor = props.getProperty(variavel).trim();

        } catch (Exception ex) {
            ex.printStackTrace();  
            
        }  
        return valor;  
    }
		
}
